<?php
include_once 'common.inc.php';


if($operation == 'display'){
    $category = pdo_fetchall("select * from ".tablename(MODULE_PREFIX."category")." where uniacid = $uniacid and deleted = 0 and parentid = 0 ");
    
    $condition = "";
    if(!empty($_GPC['pcate'])){
        $condition = " and pcate = ".intval($_GPC['pcate']);
    }
    
    $list = pdo_fetchall("select * from ".tablename(MODULE_PREFIX."poster")." where uniacid = $uniacid $condition ");
    $list = set_medias($list,'coverimg');
}

include $this->template('list');